<template>
  <view class="fun-flex-col page">
    <view class="fun-flex-col group_3">
      <text class="fun-self-start text_3">Account Balance</text>
      <view class="fun-mt-16 fun-flex-col fun-self-stretch section">
        <view class="fun-flex-col fun-items-center group_4">
          <text class="font">$24,158.99</text>
          <text class="fun-mt-2 font_2">Available Amount</text>
        </view>
        <view class="fun-flex-col fun-items-center group_5">
          <text class="font">$14,158.99</text>
          <text class="fun-mt-2 font_2">In Withdrawals</text>
        </view>
        <view class="fun-flex-row group_6">
          <view class="fun-flex-col fun-justify-start fun-items-center text-wrapper">
            <text class="font_3 text_4" @click="recharge">Top up</text>
          </view>
          <view class="fun-ml-14 fun-flex-col fun-justify-start fun-items-center text-wrapper view">
            <text class="font_3 text_5" @click="withdraw">Withdraw</text>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    components: {},
    props: {},
    data() {
      return {};
    },

    methods: {
		recharge(){
			uni.navigateTo({url:'/pages/mine/myWallet/recharge'})
		},
		withdraw(){
			uni.navigateTo({url:'/pages/mine/myWallet/withdraw'})
		}
	},
  };
</script>

<style scoped lang="scss">
  .ml-5 {
    margin-left: 10rpx;
  }
  .page {
    padding: 32rpx;
    background-color: #00033b;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    .group {
      padding-left: 36rpx;
      .text {
        color: #ffffff;
        font-size: 30rpx;
        font-family: SF Pro Text;
        font-weight: 600;
        line-height: 22.18rpx;
      }
      .image {
        width: 34rpx;
        height: 22rpx;
      }
      .image_2 {
        width: 30rpx;
        height: 22rpx;
      }
      .image_3 {
        width: 48rpx;
        height: 22.66rpx;
      }
    }
    .group_2 {
      margin-top: 48rpx;
      padding-top: 16rpx;
      .image_4 {
        width: 48rpx;
        height: 48rpx;
      }
      .pos {
        position: absolute;
        left: 0.22rpx;
        top: 50%;
        transform: translateY(-50%);
      }
      .text_2 {
        color: #ffffff;
        font-size: 32rpx;
        font-family: SF Pro Display;
        font-weight: 300;
        line-height: 28.42rpx;
      }
    }
    .group_3 {
      .text_3 {
        color: #ffffff;
        font-size: 36rpx;
        font-family: Impact;
      }
      .section {
        padding: 0 30rpx 28rpx 30rpx;
        background-color: #1b1d53;
        border-radius: 24rpx;
        border: solid 2rpx #ffffff33;
        .group_4 {
          padding: 80rpx 0;
          border-bottom: solid 2rpx #ffffff42;
        }
        .group_5 {
          margin-top: 64rpx;
        }
        .font {
          font-size: 52rpx;
          font-family: SF Pro Display;
          line-height: 48.32rpx;
          font-weight: 700;
          color: #ffffff;
        }
        .font_2 {
          font-size: 28rpx;
          font-family: SF Pro Display;
          font-weight: 300;
          color: #ffffff;
        }
        .group_6 {
          margin-top: 108rpx;
          .text-wrapper {
            flex: 1 1 296rpx;
            padding: 36rpx 0;
            background-color: #00033b;
            border-radius: 16rpx;
            height: 100rpx;
            border-left: solid 2rpx #5ceec4;
            border-right: solid 2rpx #5ceec4;
            border-top: solid 2rpx #5ceec4;
            border-bottom: solid 2rpx #5ceec4;
            .font_3 {
              font-size: 32rpx;
              font-family: SF Pro Display;
              font-weight: 700;
              color: #5ceec4;
            }
            .text_4 {
              line-height: 28.02rpx;
            }
            .text_5 {
              line-height: 23.96rpx;
            }
          }
          .view {
            margin-right: 12rpx;
          }
        }
      }
    }
  }
</style>